#!/bin/sh -l

HOME=/root
USER=root
export HOME USER

ROOT_WINDOW_BG=-br

if test -x /bin/plymouth && /bin/plymouth --ping; then
    /bin/plymouth deactivate
    if /bin/plymouth --has-active-vt; then
        ROOT_WINDOW_BG=-nr
    else
        /bin/plymouth quit
    fi
fi

exec /usr/bin/xinit /usr/bin/yali-bin -- vt7 -nolisten tcp -dpi 96 -novtswitch $ROOT_WINDOW_BG
